const path = require('path')

const fpath = 'a/ab/b/b/b.html'

//path.extname 获取路径中的文件扩展名

const fext = path.extname(fpath)
// const bbb = path.basename(fpath,'.html') 
console.log(fext);